package com.pcc.antimoney.exception;

/**
 * @author 76004
 * @apiNote 服务层异常
 * @date 2023/2/11 11:57
 */

public class ServiceException extends RuntimeException{
    private int code;
    private String message;

    public ServiceException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
